package com.pkk.blny.model.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * <pre>
 *     附件
 * </pre>
 *
 * @author : RYAN0UP
 * @date : 2018/1/10
 */
@Data
@Entity
@Table(name = "halo_attachment")
public class Attachment implements Serializable {

  private static final long serialVersionUID = 3060117944880138064L;

  /**
   * 附件编号
   */
  @Id
  @GeneratedValue
  private Long attachId;

  /**
   * 附件名
   */
  private String attachName;

  /**
   * 附件路径
   */
  private String attachPath;

  /**
   * 附件缩略图路径
   */
  private String attachSmallPath;

  /**
   * 附件类型
   */
  private String attachType;

  /**
   * 附件后缀
   */
  private String attachSuffix;

  /**
   * 上传时间
   */
  private Date attachCreated;

  /**
   * 附件大小
   */
  private String attachSize;

  /**
   * 附件长宽
   */
  private String attachWh;

  /**
   * 附件存储地址
   */
  private String attachLocation;

  /**
   * 附件来源，0：上传，1：外部链接
   */
  private Integer attachOrigin = 0;
}
